//
//  ZTCareVideoCell.m
//  zhibo8
//
//  Created by zzt on 16/11/23.
//  Copyright © 2016年 zzt. All rights reserved.
//

#import "ZTCareVideoCell.h"
#import "ZTCareitem.h"
#import <UIImageView+WebCache.h>

@interface ZTCareVideoCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageV;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UIButton *dingLabel;
@property (weak, nonatomic) IBOutlet UIButton *caiLabel;

@end

@implementation ZTCareVideoCell

- (void)setItem:(ZTCareitem *)item {
    _item = item;
    [_imageV sd_setImageWithURL:[NSURL URLWithString:item.image0] placeholderImage:[UIImage imageNamed:@"user_default1"]];
    
    _nameLabel.text = item.name;
    _timeLabel.text = item.create_time;
    [_dingLabel setTitle:item.ding forState:UIControlStateNormal];
    [_dingLabel setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [_caiLabel setTitle:item.cai forState:UIControlStateNormal];
    [_caiLabel setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
}

@end
